package admin

import (
	"common/tools"
	"github.com/kataras/iris/v12"
	"one/service/admin"
)

type UserRoute interface {
	Login(ctx iris.Context, service admin.UserService)
}

func NewUserRoute() UserRoute {
	return &userRoute{}
}

type userRoute struct{}

func (r *userRoute) Login(ctx iris.Context, service admin.UserService) {
	tools.Ok(ctx, iris.Map{"token": "aaflkfadslkjfadskjlfdas;fdsakjl;asdf"})
}
